import {request} from "@/utils/request.js"
//企业查询
export const getEnterprice = async (query) => {
	let data = await request({
		headers: {
			isToken: true,
		},
		url: '/ht-user/enterprise/getAppEnterpriseList',
		method: "POST",
		data: query
	})
	return data
}


export const getXhBGroupByList = async (query) => {
	let data = await request({
		headers: {
			isToken: true,
		},
		url: '/ht-nonrealtime-gameservice/publish/getXhBGroupByList',
		method: "POST",
		data: query
	})
	return data
}
//评论
export const getXhbCommentByPublishId = async (query) => {
	console.log(query)
	let data = await request({
		headers: {
			isToken: true,
		},
		url: `/ht-nonrealtime-gameservice/publish/getXhbCommentByPublishId?publishId=${query}`,
		method: "GET",
	})
	return data
}
//发布新需求
export const publishNewRequest = async (query) => {
	console.log(query)
	let data = await request({
		headers: {
			isToken: true,
		},
		url: `/ht-nonrealtime-gameservice/publish/publishNewRequest`,
		method: "POST",
		data:query
	})
	return data
}
//关注或者揭榜
export const saveHxbUserOperation = async (query) => {
	console.log(query)
	let data = await request({
		headers: {
			isToken: true,
		},
		url: `/ht-nonrealtime-gameservice/publish/saveHxbUserOperation`,
		method: "POST",
		data:query
	})
	return data
}
//发布评论
export const saveXhbComment = async (query) => {
	console.log(query)
	let data = await request({
		headers: {
			isToken: true,
		},
		url: `/ht-nonrealtime-gameservice/publish/saveXhbComment`,
		method: "POST",
		data:query
	})
	return data
}
export const getXhbPublishRequestDetailById = async (query) => {
	console.log(query)
	let data = await request({
		headers: {
			isToken: true,
		},
		url: `/ht-nonrealtime-gameservice/publish/getXhbPublishRequestDetailById?id=${query}`,
		method: "GET",
		
	})
	return data
}

